home *** CD-ROM | disk | FTP | other *** search
- // Copyright (C) 1997-2002 Alias|Wavefront,
- // a division of Silicon Graphics Limited.
- //
- // The information in this file is provided for the exclusive use of the
- // licensees of Alias|Wavefront. Such users have the right to use, modify,
- // and incorporate this code into other products for purposes authorized
- // by the Alias|Wavefront license agreement, without fee.
- //
- // ALIAS|WAVEFRONT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
- // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
- // EVENT SHALL ALIAS|WAVEFRONT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
- // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
- // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
- // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- // PERFORMANCE OF THIS SOFTWARE.
- //
- // Copyright (C) 1997-2001 Alias|Wavefront,
- // a division of Silicon Graphics Limited.
- //
- // The information in this file is provided for the exclusive use of the
- // licensees of Alias|Wavefront. Such users have the right to use, modify,
- // and incorporate this code into other products for purposes authorized
- // by the Alias|Wavefront license agreement, without fee.
- //
- // ALIAS|WAVEFRONT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
- // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
- // EVENT SHALL ALIAS|WAVEFRONT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
- // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
- // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
- // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- // PERFORMANCE OF THIS SOFTWARE.
- //
- //
- // Alias|Wavefront Script File
- //
- // Creation Date: March 23, 1999
- //
- //
- // Procedure Name:
- // AErevolveTemplate
- //
- // Description Name;
- // Creates the attribute editor controls for the subdiv node
- //
- // Input Value:
- // nodeName
- //
- // Output Value:
- // None
- //
-
- global proc AEsubdiv_formatCallback( string $nodeName )
- //
- // Description:
- // Proc called when ($nodeName.format) attribute is
- // changed. We want to dim out the Depth control when
- // "format" is set to "Adaptive."
- {
- int $dimDepth = false;
-
- if( `getAttr ( $nodeName + ".format" )` == 1 ) {
- $dimDepth = true;
- }
-
- editorTemplate -dimControl $nodeName "depth" $dimDepth;
- }
-
-
- global proc AEsubdivTemplate( string $nodeName )
- {
- editorTemplate -beginScrollLayout;
-
- editorTemplate -beginLayout "Subdiv Component Display" -collapse true;
- editorTemplate -label "Vertices" -addControl "dispVertices";
- editorTemplate -label "Edges" -addControl "dispEdges";
- editorTemplate -label "Faces" -addControl "dispFaces";
- editorTemplate -label "UVs" -addControl "dispMaps";
- editorTemplate -label "UV Borders" -addControl "dispUVBorder";
- editorTemplate -label "Geometry" -addControl "dispGeometry";
- editorTemplate -label "Level" -addControl "displayLevel";
- editorTemplate -label "Filter" -addControl "displayFilter";
- editorTemplate -endLayout;
-
- editorTemplate -beginLayout "Subdiv Surface Display" -collapse true;
- editorTemplate -label "Resolution" -addControl "dispResolution";
- editorTemplate -label "Normals scale" -addControl "normalsDisplayScale";
- editorTemplate -endLayout;
-
- editorTemplate -beginLayout "Hierarchical Edit Behavior" -collapse true;
- editorTemplate -addControl "scalingHierarchy";
- editorTemplate -endLayout;
-
- editorTemplate -beginLayout "Tessellation";
- editorTemplate -addControl "format" AEsubdiv_formatCallback;
- editorTemplate -addControl "depth";
- editorTemplate -addControl "sampleCount";
- editorTemplate -endLayout;
- // include/call base class/node attributes
- AEsurfaceShapeTemplate $nodeName;
-
- //suppressed attributes
- editorTemplate -suppress "create";
- editorTemplate -suppress "cached";
- editorTemplate -suppress "outSubdiv";
- editorTemplate -suppress "worldSubdiv";
- editorTemplate -suppress "vertex";
- editorTemplate -suppress "singleVertex";
- editorTemplate -suppress "singleVertexX";
- editorTemplate -suppress "singleVertexY";
- editorTemplate -suppress "singleVertexZ";
- editorTemplate -suppress "edgeCrease";
- editorTemplate -suppress "textureCoord";
-
- editorTemplate -suppress "baseFaceCount";
- editorTemplate -suppress "levelOneFaceCount";
- editorTemplate -suppress "dispVerticesAsLimitPoints";
- editorTemplate -suppress "localizeLimitPointsEdit";
- editorTemplate -suppress "dispCreases";
- editorTemplate -suppress "vertexTweak";
-
- editorTemplate -addExtraControls;
- editorTemplate -endScrollLayout;
- }
-